import request from "@/utils/request";

class ManageAPI {
  /** 获取基本设置接口 */
  static getSetting() {
    return request({
      url: "/api/setting/query",
      method: "post",
    });
  }
  /** 提交基本设置 接口*/
  static submitSetting(data) {
    return request({
      url: "/api/setting/submit",
      method: "post",
      data: data,
    });
  }
  /** 群众反馈查询 接口*/
  static getCrowd(data) {
    return request({
      url: "/api/eval/query",
      method: "post",
      data: data,
    });
  }
  /** 群众反馈删除 接口*/
  static deleteCrowd(queryParams) {
    return request({
      url: "/api/eval/delete",
      method: "get",
      params: queryParams,
    });
  }
  /** 内部考核查询 接口*/
  static queryInternal(data) {
    return request({
      url: "/api/internal/query",
      method: "post",
      data: data,
    });
  }
  /** 内部考核新增 接口*/
  static addInternal(data) {
    return request({
      url: "/api/internal/insert",
      method: "post",
      data: data,
    });
  }
  /** 内部考核编辑 接口*/
  static updateInternal(data) {
    return request({
      url: "/api/internal/update",
      method: "post",
      data: data,
    });
  }
  /** 内部考核删除 接口*/
  static deleteInternal(queryParams) {
    return request({
      url: "/api/internal/delete",
      method: "get",
      params: queryParams,
    });
  }

  /** 附件删除 接口*/
  static deleteFile(queryParams) {
    return request({
      url: "/api/file/delete",
      method: "get",
      params: queryParams,
    });
  }
  /** 附件上传 接口*/
  static uploadFile(data) {
    return request({
      url: "/api/file/upload",
      method: "post",
      data: data,
      headers: {
        "Content-Type": "multipart/form-data",
      },
    });
  }
  /** 大屏统计 接口*/
  static getStatistics(queryParams) {
    return request({
      url: "/api/statistics/query",
      method: "get",
      params: queryParams,
    });
  }
}

export default ManageAPI;
